<template>
  <div class="nav-wrap" :style="{ width: width, height: height}">
    <nav-card
      v-for="(item,index) in list"
      :key="item.address+index"
      :navAddress="item.address"
      :labelId="item.type"
      :childList="item.childList"
    >{{item.label}}
    </nav-card>
  </div>
</template>

<script>
import NavCard from './navCard';

export default {
  name: "navWrap",
  components: {
    NavCard
  },
  props: {
    list: Array,
    width: String,
    height: String
  },
}
</script>

<style lang="scss" scoped>
  .nav-wrap {
    display: inline-block;
    background-color: #fff;
    padding-top: 21*$length;
    @include border-radius(4*$length);
  }
</style>
